feat(cli): support cloud project visibility on add#715
Conversation
Signed-off-by: phernandez <paul@basicmachines.co>
|
Claude finished @phernandez's task in 1m 53s —— View job PR Review: feat(cli): support cloud project visibility on addTasks:
SummaryThis PR is well-structured overall — the refactor of Code Quality & Standards Checklist
Issues Found🔴 Bug:
|
Signed-off-by: phernandez <paul@basicmachines.co>
|
Claude finished @phernandez's task in 1m 30s —— View job PR Review: feat(cli): support cloud project visibility on addTasks:
SummaryThis update directly addresses the issues raised in the previous review. All three actionable items have been resolved cleanly. Previous Review Issues — Status
Bug fix ( Import consolidation ( Return type ( New test ( Code Quality & Standards Checklist
Minor Observations (non-blocking)
|
Summary
--visibilityand--workspacesupport tobm project add --cloudworkspace_idwith local sync configWhy
The CLI could only create cloud projects with the default workspace visibility, which left issue #705 unresolved for team workspaces. This change lets the CLI express the same visibility choices the web app already supports.
Impact
Users can now create cloud projects from the CLI with explicit
workspace,shared, orprivatevisibility and target a specific workspace when needed, while keeping the command scriptable.Closes #705
Validation
uv run ruff check src/basic_memory/schemas/cloud.py src/basic_memory/cli/commands/cloud/cloud_utils.py tests/cli/cloud/test_cloud_api_client_and_utils.py src/basic_memory/cli/commands/project.py tests/cli/test_project_add_with_local_path.pyuv run pyright src/basic_memory/schemas/cloud.py src/basic_memory/cli/commands/cloud/cloud_utils.py src/basic_memory/cli/commands/project.pyuv run pytest -q tests/cli/test_project_add_with_local_path.py tests/cli/test_project_set_cloud_local.py tests/cli/cloud/test_cloud_api_client_and_utils.py